package com.heatup.apt.model.course;

import com.heatup.apt.model.Resource;
import com.heatup.apt.model.product.ServicePrice;
import com.heatup.apt.model.Resource;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * Created by Blank on 2016-10-16.
 */
public class CourseInfoModel extends CourseInfo {

    private Integer coachId;
    private Integer currentCountReal;   //实际报名人数
    private String storeId;
    private Integer weeks;
    private Integer waitNumber;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date startTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date endTime;
    private String hourMin;
    private String link;
    private String url;
    private String qunQRCodePic;
    private String categoryPic;
    private String storeName;
    private String nickName;
    private ServicePrice servicePrice;
    private List<Resource> resources;
    private String startTimeStr;    //团课开始时间年月日格式
    private String workoutRoomName; //操房名称

    public Integer getCoachId() {
        return coachId;
    }

    public void setCoachId(Integer coachId) {
        this.coachId = coachId;
    }

    public Integer getCurrentCountReal() {
        return currentCountReal;
    }

    public void setCurrentCountReal(Integer currentCountReal) {
        this.currentCountReal = currentCountReal;
    }

    public String getStoreId() {
        return storeId;
    }

    public void setStoreId(String storeId) {
        this.storeId = storeId;
    }

    public Integer getWeeks() {
        return weeks;
    }

    public void setWeeks(Integer weeks) {
        this.weeks = weeks;
    }

    public Integer getWaitNumber() {
        return waitNumber;
    }

    public void setWaitNumber(Integer waitNumber) {
        this.waitNumber = waitNumber;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getHourMin() {
        return hourMin;
    }

    public void setHourMin(String hourMin) {
        this.hourMin = hourMin;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getQunQRCodePic() {
        return qunQRCodePic;
    }

    public void setQunQRCodePic(String qunQRCodePic) {
        this.qunQRCodePic = qunQRCodePic;
    }

    public String getCategoryPic() {
        return categoryPic;
    }

    public void setCategoryPic(String categoryPic) {
        this.categoryPic = categoryPic;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public ServicePrice getServicePrice() {
        return servicePrice;
    }

    public void setServicePrice(ServicePrice servicePrice) {
        this.servicePrice = servicePrice;
    }

    public List<Resource> getResources() {
        return resources;
    }

    public void setResources(List<Resource> resources) {
        this.resources = resources;
    }

    public String getStartTimeStr() {
        return startTimeStr;
    }

    public void setStartTimeStr(String startTimeStr) {
        this.startTimeStr = startTimeStr;
    }

    public String getWorkoutRoomName() {
        return workoutRoomName;
    }

    public void setWorkoutRoomName(String workoutRoomName) {
        this.workoutRoomName = workoutRoomName;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("CourseInfoModel{");
        sb.append("coachId=").append(coachId);
        sb.append(", currentCountReal=").append(currentCountReal);
        sb.append(", storeId='").append(storeId).append('\'');
        sb.append(", weeks=").append(weeks);
        sb.append(", waitNumber=").append(waitNumber);
        sb.append(", startTime=").append(startTime);
        sb.append(", endTime=").append(endTime);
        sb.append(", hourMin='").append(hourMin).append('\'');
        sb.append(", link='").append(link).append('\'');
        sb.append(", url='").append(url).append('\'');
        sb.append(", qunQRCodePic='").append(qunQRCodePic).append('\'');
        sb.append(", categoryPic='").append(categoryPic).append('\'');
        sb.append(", storeName='").append(storeName).append('\'');
        sb.append(", nickName='").append(nickName).append('\'');
        sb.append(", servicePrice=").append(servicePrice);
        sb.append(", resources=").append(resources);
        sb.append(", startTimeStr='").append(startTimeStr).append('\'');
        sb.append(", workoutRoomName='").append(workoutRoomName).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
